Micron Document




Python syntax and semantics
part 8/45 · 74.8 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
it would cause the last line to always be executed, even when x is 0, resulting in an endless recursion.

While both space and tab characters are accepted as forms of indentation and any multiple of spaces can be used, spaces are recommendedcite-ref-12[8] and 4 spaces (as in the above examples) are recommended and are by far the most commonly used.cite-ref-13[9]cite-ref-14[10] Mixing spaces and tabs on consecutive lines is not allowed starting with Python 3cite-ref-15[11] because that can create bugs which are difficult to see, since many text editors do not visually distinguish spaces and tabs.

Data structures

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────